package com.simen.hellobytes.regular;

/**
 * author: SimenHi
 * create time: 2020-08-20 16:55
 * description:
 */
public class CommonPattern {

    //email
    public static final String PATTERN_EMAIL = "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$";
    public static final String PATTERN_EMAIL_WITHCHINESENAME = "^[A-Za-z0-9\\u4e00-\\u9fa5]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$";
    public static final String PATTERN_EMAIL_WITHCHINESE_FULL = "^[A-Za-z0-9\\u4e00-\\u9fa5]+@[a-zA-Z0-9\\u4e00-\\u9fa5_-]+(\\.[a-zA-Z0-9\\u4e00-\\u9fa5_-]+)+$";

    public static final String PATTERN_CHINESE = "^[\\u4e00-\\u9fa5]$";

    public static final String PATTERN_LETTER_NUMBER = "^[A-Za-z0-9]+$";
    public static final String PATTERN_UPPERLETTER_NUMBER = "^[A-Z0-9]+$";
}
